if the hilite of cd btn "Beep at non-numeric Characters" is false then
sayTheNumbers cd fld testField
else
sayTheNumbers cd fld testField, beep
end if
end mouseUp
-- part 4 (button)
-- low flags: 00
-- high flags: A002
-- rect: left=312 top=13 right=43 bottom=376
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 14
-- style flags: 0
-- line height: 16
-- part name: About
----- HyperTalk script -----
on mouseUp
set the visible of cd fld about to not the visible of cd fld about
end mouseUp
-- part 6 (button)
-- low flags: 00
-- high flags: E005
-- rect: left=11 top=56 right=70 bottom=189
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: Beep at non-numeric Characters
-- part 5 (field)
-- low flags: 85
-- high flags: 2007
-- rect: left=4 top=2 right=70 bottom=309
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: about
----- HyperTalk script -----
on mouseUp
hide me
end mouseup
-- part contents for card part 1
----- text -----
(123)456-7890h
-- part contents for card part 5
-- note: style data is present
----- text -----
Say The Numbers is a stack that does one thing. It says numbers. Why would you want a stack to do that? Well, in HyperCard 2.0, you now have the ability to use the capabilities and resources of a stack by including the command start using <stackName>. So if you ever wanted to have your address book, or any other stack read numbers back to you when you tupe them in, add the HyperTalk handler start using stack "Say The Numbers" and then use sayTheNumbers <the field or variable you want it to say> where you need it (for example, on closeField). You may also add a second argument to beep for nonNumbers (except for spaces, dashes and parentheses, common parts of phone numbers). If you leave it out, then saynumbers will merely skip over the non-numbers. In other words sayTheNumbers bg fld foneNumber,doABeep will beep for non-numbers; sayTheNumbers bg fld foneNumber will skip over non-numbers. This stack and my voice are freeware. Have fun!